<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="center">
	<ul class="pagination ">
		<li><a href="javascript:void(0)" onclick="toPage(1)">首页</a></li>
		<c:choose>
			<c:when test="${pr.currentPage >1}">
				<li>
					<a href="javascript:void(0)" onclick="toPage(${pr.currentPage -1})">上一页</a>
				</li>
			</c:when>
			<c:otherwise>
				<li class="disabled">
					<a>上一页</a>
				</li>
			</c:otherwise>
		</c:choose>
		<c:choose>
			<c:when test="${pr.currentPage < pr.totalPage}">
				<li>
					<a href="javascript:void(0)" onclick="toPage(${pr.currentPage+1})">下一页</a>
				</li>
			</c:when>
			<c:otherwise>
				<li class="disabled">
					<a>下一页</a>
				</li>
			</c:otherwise>
		</c:choose>
		<li><a href="javascript:void(0)" onclick="toPage(${pr.totalPage})">尾页</a></li>
		<li>
			<select id="selectPNO" style='height: 33px; width: 50px; float: left; line-height: 34px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px;'>
				<c:forEach begin="1" end="${pr.totalPage}" var="p">
					<c:choose>
						<c:when test="${pr.currentPage==p}">
							<option selected>${p}</option>
						</c:when>
						<c:otherwise>
							<option>${p}</option>
						</c:otherwise>
					</c:choose>
				</c:forEach>
			</select>
			<a href="javascript:void(0)" onclick="toPage($('#selectPNO').val());">前往</a>
		</li>
		<li class="disabled"><a>${pr.pageSize}条/页，总共${pr.totalPage}页-${pr.total}条记录 </a>
	</ul>
</div>
